package com.company.dto.data;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@Schema(title = "登录成功后返回前端登录结果")
public class LoginInfoDTO {

    @Schema(title = "登录的Token")
    private String accessToken;

    @Schema(title = "基础用户ID")
    private String baseUserId;

    @Schema(title = "基础用户信息")
    private Identity identity;

    @Schema(title = "刷新token")
    private RefreshToken refreshToken;


    @Data
    @Builder
    @AllArgsConstructor
    public static class RefreshToken {

        private String value;

        private Long expireTime;


    }
}
